#include "LevelRule.h"

void cLevelRule::EvalRule() {
	cStatementListIt lItStatement;
	for (lItStatement = mConditions.begin(); lItStatement != mConditions.end(); lItStatement++) {
		if (!lItStatement->Eval())
			return;
	}
	for (lItStatement = mActions.begin(); lItStatement != mActions.end(); lItStatement++) {
		lItStatement->Do();
	}
}
